gtk4.git
5 years agotypes: fix various use of volatile in type registration
Christian Hergert [Thu, 19 Nov 2020 03:58:09 +0000 (19:58 -0800)]
types: fix various use of volatile in type registration

The use of volatile was incorrect in GLib and has been that way for
a long time. Recently however that has changed, and this makes GTK
follow suit to avoid using volatile in the type registration.

See also: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1719

Combined with the above merge request for GLib, this fixes a large
number of compilation warnings when using Clang.

5 years agoMerge branch 'wayland-minimize' into 'master'
Matthias Clasen [Wed, 18 Nov 2020 14:23:56 +0000 (14:23 +0000)]
Merge branch 'wayland-minimize' into 'master'

wayland: Implement minimization

Closes #2688

See merge request GNOME/gtk!2861

5 years agoMerge branch 'constraint-editor-work' into 'master'
Matthias Clasen [Wed, 18 Nov 2020 12:19:07 +0000 (12:19 +0000)]
Merge branch 'constraint-editor-work' into 'master'

Constraint editor work

See merge request GNOME/gtk!2863

5 years agoconstraint-editor: Fix creating constant constraints
Matthias Clasen [Wed, 18 Nov 2020 04:15:51 +0000 (23:15 -0500)]
constraint-editor: Fix creating constant constraints

We were not making the button sensitive in the case
of a constant constraint, and we were not properly
creating constant constraints either.

5 years agoconstraint-editor: Fix saving of constraints
Matthias Clasen [Wed, 18 Nov 2020 04:14:29 +0000 (23:14 -0500)]
constraint-editor: Fix saving of constraints

g_file_replace_contents take a gsize, so passing -1
for string length does not work here.

5 years agoconstraintlayout: Fix parsing of constant constraints
Matthias Clasen [Wed, 18 Nov 2020 04:11:16 +0000 (23:11 -0500)]
constraintlayout: Fix parsing of constant constraints

We were inadvertently turning constant constraints into
constraints against super, due to confusion between target
and source attribute.

5 years agoMerge branch 'wip/chergert/gdk-macos-for-master' into 'master'
Matthias Clasen [Wed, 18 Nov 2020 03:04:01 +0000 (03:04 +0000)]
Merge branch 'wip/chergert/gdk-macos-for-master' into 'master'

macos: fix rendering artifacts with hover transitions

See merge request GNOME/gtk!2862

5 years agoconstraint-editor: Improve display of constraints
Matthias Clasen [Wed, 18 Nov 2020 02:52:15 +0000 (21:52 -0500)]
constraint-editor: Improve display of constraints

No need to go for ALGOL60 style operators when we
have Unicode.

5 years agomacos: fix rendering artifacts with hover transitions
Christian Hergert [Wed, 18 Nov 2020 02:20:55 +0000 (18:20 -0800)]
macos: fix rendering artifacts with hover transitions

Using an image surface seems to fix some rendering artifacts when
performing cross-fade CSS transitions.

5 years agowayland: Implement minimization
Matthias Clasen [Wed, 18 Nov 2020 00:57:56 +0000 (19:57 -0500)]
wayland: Implement minimization

Use the set_minimized method of the xdg_toplevel
interface to implement minimization as well as possible.
It is not possible, since there is no corresponding
state that we could use to update our surface state,
but in practice, it works well enough.

Fixes: #2688
5 years agoMerge branch 'wip/carlosg/for-master' into 'master'
Matthias Clasen [Wed, 18 Nov 2020 00:13:17 +0000 (00:13 +0000)]
Merge branch 'wip/carlosg/for-master' into 'master'

gdk/wayland: Update to gtk_shell1 version 3

See merge request GNOME/gtk!2860

5 years agogdk/wayland: Update to gtk_shell1 version 3
Carlos Garnacho [Tue, 17 Nov 2020 23:38:15 +0000 (00:38 +0100)]
gdk/wayland: Update to gtk_shell1 version 3

Bring in line with gtk3, in terms of startup notification and
activation support.

5 years agoMerge branch 'wip/chergert/gdk-macos-for-master' into 'master'
Matthias Clasen [Tue, 17 Nov 2020 22:49:05 +0000 (22:49 +0000)]
Merge branch 'wip/chergert/gdk-macos-for-master' into 'master'

node-editor: fix length of text during save

See merge request GNOME/gtk!2859

5 years agoMerge branch 'fix-doc-packtype' into 'master'
Matthias Clasen [Tue, 17 Nov 2020 22:46:43 +0000 (22:46 +0000)]
Merge branch 'fix-doc-packtype' into 'master'

doc: Adapt GtkPackType documentation to GTK4 changes

See merge request GNOME/gtk!2858

5 years agonode-editor: fix length of text during save
Christian Hergert [Tue, 17 Nov 2020 22:34:11 +0000 (14:34 -0800)]
node-editor: fix length of text during save

The length parameter for g_file_replace_contents() is a gsize, so -1 is
unsuitable here. Just use strlen() directly.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Tue, 17 Nov 2020 19:25:05 +0000 (19:25 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

Closes #3278

See merge request GNOME/gtk!2856

5 years agoMerge branch 'wip/chergert/gdk-macos-for-master' into 'master'
Matthias Clasen [Tue, 17 Nov 2020 19:24:47 +0000 (19:24 +0000)]
Merge branch 'wip/chergert/gdk-macos-for-master' into 'master'

inspector: handle differences in DPI between backends

See merge request GNOME/gtk!2857

5 years agodoc: Adapt GtkPackType documentation to GTK4 changes
vanadiae [Tue, 17 Nov 2020 19:14:51 +0000 (20:14 +0100)]
doc: Adapt GtkPackType documentation to GTK4 changes

Since GTK4, the functions that used the GtkPackType enumeration,
`gtk_box_pack_{start,end}`, were replaced by `gtk_box_{append,prepend}`,
hence this enumeration isn't used anymore by any function within the
GtkBox type, and the child packing properties were also removed for GTK4.
So this commit adapts the documentation accordingly.

5 years agoMerge branch 'wip/otte/for-master' into 'master'
Benjamin Otte [Tue, 17 Nov 2020 19:08:01 +0000 (19:08 +0000)]
Merge branch 'wip/otte/for-master' into 'master'

Wip/otte/for master

See merge request GNOME/gtk!2855

5 years agoinspector: handle differences in DPI between backends
Christian Hergert [Tue, 17 Nov 2020 18:45:25 +0000 (10:45 -0800)]
inspector: handle differences in DPI between backends

This fixes an issue on macOS where the text gets much larger once opening
the inspector.

5 years agoinspector: Limit the width of readonly properties
Matthias Clasen [Tue, 17 Nov 2020 18:33:59 +0000 (13:33 -0500)]
inspector: Limit the width of readonly properties

For readonly properties, we show the serialized value
in a label. If we don't take precautions, this can cause
our window to grow extremely wide, and break things.
So, ellipsize things at a reasonable size.

Fixes: #3278
5 years agosnapshot: Add cleanup function to snapshot state
Benjamin Otte [Wed, 11 Nov 2020 00:34:37 +0000 (01:34 +0100)]
snapshot: Add cleanup function to snapshot state

Otherwise we're leaking data in error cases.

5 years agorendernode: Rename all gsk_render_node_peek_*() functions
Benjamin Otte [Mon, 16 Nov 2020 23:59:36 +0000 (00:59 +0100)]
rendernode: Rename all gsk_render_node_peek_*() functions

Those are getters, they should be gsk_render_node_get_*() functions.

5 years agotests: Fix for new tranfer behavior of constructors
Benjamin Otte [Sun, 8 Nov 2020 14:42:11 +0000 (15:42 +0100)]
tests: Fix for new tranfer behavior of constructors

We were still unreffing a listmodel where the reference wasn't ours
anymore.

5 years agotestsuite: Make defaultvalue test always get the property
Benjamin Otte [Tue, 17 Nov 2020 18:03:18 +0000 (19:03 +0100)]
testsuite: Make defaultvalue test always get the property

Make the test not skip properties completely, just skip checking the
property.

This caught the last 2 commits.

5 years agotextbuffer: Remove unused properties
Benjamin Otte [Tue, 17 Nov 2020 18:02:26 +0000 (19:02 +0100)]
textbuffer: Remove unused properties

The getters and setters were removed in
f53848c3606a9c46bcb3a0e568f36e573bdf84da but the pspecs were forgotten.

5 years agoshortcut: Actions are objects
Benjamin Otte [Tue, 17 Nov 2020 18:01:13 +0000 (19:01 +0100)]
shortcut: Actions are objects

5 years agoMerge branch 'wip/chergert/gdk-macos-for-master' into 'master'
Emmanuele Bassi [Tue, 17 Nov 2020 17:58:14 +0000 (17:58 +0000)]
Merge branch 'wip/chergert/gdk-macos-for-master' into 'master'

macos: bring forward quartz search engine updates

See merge request GNOME/gtk!2854

5 years agoMerge branch 'ebassi/inout-args' into 'master'
Emmanuele Bassi [Tue, 17 Nov 2020 17:40:13 +0000 (17:40 +0000)]
Merge branch 'ebassi/inout-args' into 'master'

Remove pointless inout arguments

See merge request GNOME/gtk!2853

5 years agomacos: bring forward quartz search engine updates
Christian Hergert [Tue, 17 Nov 2020 17:36:01 +0000 (09:36 -0800)]
macos: bring forward quartz search engine updates

These were not cherry picked after GTK branched for 4 development.

5 years agodocs: Add details about plain builds
Matthias Clasen [Tue, 17 Nov 2020 17:21:29 +0000 (12:21 -0500)]
docs: Add details about plain builds

Mention that build type 'plain' puts the responsibility
for debug features into the hands of the builder.

Related: !2831

5 years agoRemove pointless inout arguments
Emmanuele Bassi [Tue, 17 Nov 2020 14:40:52 +0000 (14:40 +0000)]
Remove pointless inout arguments

GtkTreeView.get_tooltip_context() takes an inout X and Y coordinates,
but the "out" side is a side effect: the conversion from widget-relative
to bin window-relative coordinates is not documented, and can be done
using public API, if needed.

GtkIconView.get_tooltip_context() follows the same pattern, and takes
two inout arguments for the coordinates, but it does not change them any
more, after GtkIconView's bin window was dropped in commit 8dc5e13e.

There's really no point in having these `inout` arguments, and while
GtkTreeView and GtkIconView are certainly de-emphasised in GTK4, and we
nudge developers to move to the new list views, we should take advantage
of the API break to remove warts.

5 years agoMerge branch 'ebassi/for-master' into 'master'
Emmanuele Bassi [Tue, 17 Nov 2020 16:04:03 +0000 (16:04 +0000)]
Merge branch 'ebassi/for-master' into 'master'

Introspection fixes

Closes #3281

See merge request GNOME/gtk!2852

5 years agoRevert "Adwaita: avoid clipping menu/popover shadow"
Jakub Steiner [Tue, 17 Nov 2020 15:48:49 +0000 (16:48 +0100)]
Revert "Adwaita: avoid clipping menu/popover shadow"

There are big side effects to adding padding around all menus and popovers.

https://gitlab.gnome.org/GNOME/gtk/-/issues/1987#note_963889

This reverts commit d266bd62deaa5752ae79fe055696a9e1e411de2f.

5 years agoAdd type annotations for GtkShortcutAction types
Emmanuele Bassi [Tue, 17 Nov 2020 14:17:26 +0000 (14:17 +0000)]
Add type annotations for GtkShortcutAction types

The constructors and singleton getters need proper annotations for their
return type, given that we return a base type.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Tue, 17 Nov 2020 14:12:23 +0000 (14:12 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!2851

5 years agoAnnotate GdkTimeCoord's array field
Emmanuele Bassi [Tue, 17 Nov 2020 14:07:11 +0000 (14:07 +0000)]
Annotate GdkTimeCoord's array field

We need to resolve the array length manually, because g-ir-scanner
cannot turn an enumeration member into a constant size.

5 years agoAnnotate the return type for GtkTreeExpander.get_item()
Emmanuele Bassi [Tue, 17 Nov 2020 13:54:22 +0000 (13:54 +0000)]
Annotate the return type for GtkTreeExpander.get_item()

We use gpointer for C convenience, but the returned value is really a
GObject.

5 years agoAnnotate out argument for gdk_popup_layout_get_offset()
Emmanuele Bassi [Tue, 17 Nov 2020 13:52:15 +0000 (13:52 +0000)]
Annotate out argument for gdk_popup_layout_get_offset()

5 years agoAnnotate the gsk_border_node_peek_widths() return value
Emmanuele Bassi [Tue, 17 Nov 2020 13:48:07 +0000 (13:48 +0000)]
Annotate the gsk_border_node_peek_widths() return value

We return a fixed sized C array of floats.

5 years agowidget-factory: Remove an unused size group
Matthias Clasen [Tue, 17 Nov 2020 12:33:46 +0000 (07:33 -0500)]
widget-factory: Remove an unused size group

This was left behind when 361407201b88c3aae2ee removed
the unused popover that this size group applied to.

5 years agodocs: Fix the links for keybinding signals
Matthias Clasen [Tue, 17 Nov 2020 03:58:53 +0000 (22:58 -0500)]
docs: Fix the links for keybinding signals

GtkBindingSignal does not exist anymore, so link to
GtkSignalAction for an explanation of keybinding signals.

5 years agopopover: Document signals
Matthias Clasen [Tue, 17 Nov 2020 03:46:17 +0000 (22:46 -0500)]
popover: Document signals

5 years agomenubutton: Fix a gtk-doc complaint
Matthias Clasen [Tue, 17 Nov 2020 03:45:59 +0000 (22:45 -0500)]
menubutton: Fix a gtk-doc complaint

5 years agogtk: Fix a doc oversight
Matthias Clasen [Tue, 17 Nov 2020 03:39:13 +0000 (22:39 -0500)]
gtk: Fix a doc oversight

5 years agogsk: Fix a doc oversight
Matthias Clasen [Tue, 17 Nov 2020 03:36:11 +0000 (22:36 -0500)]
gsk: Fix a doc oversight

5 years agoMerge branch 'fix-gi-warning' into 'master'
Matthias Clasen [Tue, 17 Nov 2020 12:31:36 +0000 (12:31 +0000)]
Merge branch 'fix-gi-warning' into 'master'

Fix a warning caused by difference between prototype and definition

See merge request GNOME/gtk!2849

5 years agoMerge branch 'wip/exalm/caption' into 'master'
Matthias Clasen [Tue, 17 Nov 2020 12:22:29 +0000 (12:22 +0000)]
Merge branch 'wip/exalm/caption' into 'master'

widget-factory: Fix caption style class name

See merge request GNOME/gtk!2850

5 years agowidget-factory: Fix caption style class name
Alexander Mikhaylenko [Tue, 17 Nov 2020 08:16:47 +0000 (13:16 +0500)]
widget-factory: Fix caption style class name

It's lowercase.

5 years agoFix a warning caused by difference between prototype and definition
Qiu Wenbo [Tue, 17 Nov 2020 06:47:28 +0000 (14:47 +0800)]
Fix a warning caused by difference between prototype and definition

This commit fix the warning:

../gdk/wayland/gdkdisplay-wayland.c:1079: Warning: GdkWayland: gdk_wayland_display_set_cursor_theme: unknown parameter 'name' in documentation comment, should be 'theme'

5 years agoMerge branch 'gsk-binding-api' into 'master'
Matthias Clasen [Tue, 17 Nov 2020 05:36:15 +0000 (05:36 +0000)]
Merge branch 'gsk-binding-api' into 'master'

gsk: Avoid using gtk css types in public api

Closes #2454

See merge request GNOME/gtk!2848

5 years agogsk: Avoid using gtk css types in public api
Matthias Clasen [Tue, 17 Nov 2020 03:21:27 +0000 (22:21 -0500)]
gsk: Avoid using gtk css types in public api

Using GtkCssSection in public headers here may be
ok from the C perspective, since it all ends up in
the same library anyway. But it causes circular
dependency problems for our gir files that are still
split by namespace.

To avoid this problem, copy the GtkCssLocation struct
struct as GskParseLocation, and pass take two of them
instead of a GtkCssSection in the error callback.

Update all users.

Fixes: #2454
5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Tue, 17 Nov 2020 03:11:13 +0000 (03:11 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

popover: Fix submenu navigation

Closes #3301

See merge request GNOME/gtk!2847

5 years agopopover: Fix submenu navigation
Matthias Clasen [Tue, 17 Nov 2020 02:27:15 +0000 (21:27 -0500)]
popover: Fix submenu navigation

In commit 024d832d943b2abf4f0d, we introduced a
cascade-popdown property that makes closing a submenu
propagate up and close its parent menus. This is the
behavior we want when a menuitem in the submen is
activated.

What we overlooked is that we still need to be able to
close a submenu during navigation, before opening another
one. And in this case, propagating the closing is breaking
things. Fix this by adding a private close_submenu api
to GtkPopoverMenu that avoids the propagation.

Fixes: #3301
5 years agobuild: Include GSK types in gtk_test_register_all_type()
Benjamin Otte [Mon, 16 Nov 2020 19:16:53 +0000 (20:16 +0100)]
build: Include GSK types in gtk_test_register_all_type()

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Tue, 17 Nov 2020 01:07:34 +0000 (01:07 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!2846

5 years agoMerge branch 'ebassi/for-master' into 'master'
Emmanuele Bassi [Mon, 16 Nov 2020 23:06:55 +0000 (23:06 +0000)]
Merge branch 'ebassi/for-master' into 'master'

Ebassi/for master

See merge request GNOME/gtk!2840

5 years agowidget-factory: Remove an unused popover
Matthias Clasen [Mon, 16 Nov 2020 20:22:12 +0000 (15:22 -0500)]
widget-factory: Remove an unused popover

We are no longer using the hand-rolled variant of that
popover on page 3, so drop it from the ui file.

5 years agoMerge branch 'wip/exalm/button' into 'master'
Matthias Clasen [Mon, 16 Nov 2020 20:16:10 +0000 (20:16 +0000)]
Merge branch 'wip/exalm/button' into 'master'

Allow pressing multiple buttons at once on touch

See merge request GNOME/gtk!2813

5 years agoMerge branch 'wip/jimmac/popover-menu-submenus' into 'master'
Jakub Steiner [Mon, 16 Nov 2020 19:50:08 +0000 (19:50 +0000)]
Merge branch 'wip/jimmac/popover-menu-submenus' into 'master'

Adwaita: fix up submenus again

See merge request GNOME/gtk!2845

5 years agoMerge branch 'wip/chergert/for-master' into 'master'
Matthias Clasen [Mon, 16 Nov 2020 19:20:19 +0000 (19:20 +0000)]
Merge branch 'wip/chergert/for-master' into 'master'

gsk: use glFrameBufferTexture2D and release texture

See merge request GNOME/gtk!2842

5 years agoMerge branch 'wip/jimmac/circular-button-focus' into 'master'
Jakub Steiner [Mon, 16 Nov 2020 18:55:30 +0000 (18:55 +0000)]
Merge branch 'wip/jimmac/circular-button-focus' into 'master'

Adwaita: circular button focus

Closes #3368

See merge request GNOME/gtk!2844

5 years agoAdwaita: fix up submenus again
Jakub Steiner [Mon, 16 Nov 2020 18:48:11 +0000 (19:48 +0100)]
Adwaita: fix up submenus again

- move menubar section under more generic popover.menu
  rather than resort to specificity dir(ltr) hacks

5 years agoAdwaita: circular button focus
Jakub Steiner [Mon, 16 Nov 2020 18:04:07 +0000 (19:04 +0100)]
Adwaita: circular button focus

- have the same focus look like the other items

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3368

5 years agoMerge branch 'wip/jimmac/spinbutton-spacing' into 'master'
Matthias Clasen [Mon, 16 Nov 2020 17:50:56 +0000 (17:50 +0000)]
Merge branch 'wip/jimmac/spinbutton-spacing' into 'master'

Adwaita: spinbutton spacing

Closes #3370

See merge request GNOME/gtk!2841

5 years agoa11y: Ensure valid object paths in the fallback code
Emmanuele Bassi [Mon, 16 Nov 2020 17:28:22 +0000 (17:28 +0000)]
a11y: Ensure valid object paths in the fallback code

When falling back to using the program name to create a unique base path
for the objects on the accessibility bus we need to ensure that the name
is a valid DBus object path.

5 years agogsk: use glFrameBufferTexture2D and release texture
Christian Hergert [Mon, 16 Nov 2020 17:26:07 +0000 (09:26 -0800)]
gsk: use glFrameBufferTexture2D and release texture

glFrameBufferTexture maps to all faces of a cube and that is not needed
here. Additionally, texture_id is not deleted after we use the additional
flipped texture, but should be.

5 years agoAdwaita: spinbutton spacing
Jakub Steiner [Mon, 16 Nov 2020 17:22:17 +0000 (18:22 +0100)]
Adwaita: spinbutton spacing

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3370

5 years agoa11y: Implement atspi.Cache
Emmanuele Bassi [Mon, 16 Nov 2020 15:23:37 +0000 (15:23 +0000)]
a11y: Implement atspi.Cache

The AT-SPI cache interface is used to quickly populate the accessible
objects tree.

The tricky bit is ensuring that we emit change notifications on the
cache only when the cache is available, which means waiting until the
root is asynchronously registered.

5 years agoa11y: Update the Cache interface introspection
Emmanuele Bassi [Mon, 16 Nov 2020 15:22:33 +0000 (15:22 +0000)]
a11y: Update the Cache interface introspection

The type for cached items is, unsurprisingly, wrong when compared to the
implementation inside atk-spi2-atk.

5 years agoa11y: Add getters for GtkAtSpiContext
Emmanuele Bassi [Mon, 16 Nov 2020 15:21:58 +0000 (15:21 +0000)]
a11y: Add getters for GtkAtSpiContext

We are going to use them in order to implement atspi.Cache.

5 years agoa11y: Use the tab widget to label the notebook stack page
Emmanuele Bassi [Mon, 16 Nov 2020 14:25:02 +0000 (14:25 +0000)]
a11y: Use the tab widget to label the notebook stack page

5 years agoa11y: Compute the base path in the root object
Emmanuele Bassi [Mon, 16 Nov 2020 14:17:28 +0000 (14:17 +0000)]
a11y: Compute the base path in the root object

The root path is shared by all AtSpiContext instances, so we should
compute it once, instead of every time we instantiate a new context.

This allows us to defer the path creation at realization time and ensure
that we have a registered application.

5 years agoa11y: Resync the AT-SPI XML
Emmanuele Bassi [Thu, 12 Nov 2020 23:26:03 +0000 (23:26 +0000)]
a11y: Resync the AT-SPI XML

Mostly just changes in the annotations coming from at-spi2-core, but
it's good to try and keep the XML in sync.

5 years agoMerge branch 'wip/jimmac/circular-button-padding' into 'master'
Jakub Steiner [Mon, 16 Nov 2020 14:50:16 +0000 (14:50 +0000)]
Merge branch 'wip/jimmac/circular-button-padding' into 'master'

Adwaita: circular buttons

See merge request GNOME/gtk!2838

5 years agodocs: Mention cairo-gobject as build requires
Matthias Clasen [Mon, 16 Nov 2020 14:29:10 +0000 (09:29 -0500)]
docs: Mention cairo-gobject as build requires

Using cairo from a system dependency and cairo-gobject
as subproject is problematic and left me stuck on a
hard-to-understand build error.

5 years agoAdwaita: circular buttons
Jakub Steiner [Mon, 16 Nov 2020 14:21:46 +0000 (15:21 +0100)]
Adwaita: circular buttons

- the vertical padding was thown off with the chin/forehead of menus removed

5 years agoMerge branch 'wip/jimmac/menu-clipped-shadow' into 'master'
Jakub Steiner [Mon, 16 Nov 2020 14:10:21 +0000 (14:10 +0000)]
Merge branch 'wip/jimmac/menu-clipped-shadow' into 'master'

Wip/jimmac/menu clipped shadow

Closes #1987

See merge request GNOME/gtk!2837

5 years agoAdwaita: avoid clipping menu/popover shadow
Jakub Steiner [Mon, 16 Nov 2020 13:20:24 +0000 (14:20 +0100)]
Adwaita: avoid clipping menu/popover shadow

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/1987

5 years agogsk: Fix some docs oversights
Matthias Clasen [Mon, 16 Nov 2020 12:43:06 +0000 (07:43 -0500)]
gsk: Fix some docs oversights

These apis have been renamed a few times, and the docs
haven't kept up.

5 years agogdk: Docs cosmetics
Matthias Clasen [Mon, 16 Nov 2020 12:40:05 +0000 (07:40 -0500)]
gdk: Docs cosmetics

Add a few missing parameters in doc comments.

5 years agodocs: Fix a typo
Matthias Clasen [Mon, 16 Nov 2020 12:37:33 +0000 (07:37 -0500)]
docs: Fix a typo

5 years agodocs: Remove gtk_render_insertion_cursor
Matthias Clasen [Mon, 16 Nov 2020 12:35:41 +0000 (07:35 -0500)]
docs: Remove gtk_render_insertion_cursor

This function was removed in 2bcef7f03058dac7cbac.

5 years agoAdwaita: remove chin on menus
Jakub Steiner [Mon, 16 Nov 2020 12:31:27 +0000 (13:31 +0100)]
Adwaita: remove chin on menus

- clipping a rounded corner seems to be working fine for first and last item.

Addresses https://gitlab.gnome.org/GNOME/gtk/-/issues/3366

5 years agoMerge branch 'wip/jimmac/subtle-sidebar' into 'master'
Jakub Steiner [Mon, 16 Nov 2020 09:34:36 +0000 (09:34 +0000)]
Merge branch 'wip/jimmac/subtle-sidebar' into 'master'

Adwaita: navigation sidebar color changes

Closes #3362

See merge request GNOME/gtk!2836

5 years agoAdwaita: navigation sidebar color changes
Jakub Steiner [Fri, 13 Nov 2020 17:24:10 +0000 (18:24 +0100)]
Adwaita: navigation sidebar color changes

- use more subtle selected state grey

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3362

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Mon, 16 Nov 2020 04:29:10 +0000 (04:29 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!2835

5 years agogtk-demo: Plug a memory leak
Matthias Clasen [Mon, 16 Nov 2020 04:03:30 +0000 (23:03 -0500)]
gtk-demo: Plug a memory leak

The Characters demo was leaking its columns.

5 years agomodelbutton: Fix keynav for check and radio
Matthias Clasen [Mon, 16 Nov 2020 02:52:07 +0000 (21:52 -0500)]
modelbutton: Fix keynav for check and radio

The expected behavior when activating check or radio
menuitems via keynav is that Space toggles the item
but keeps the menu open, while Return toggles the
item and closes the menu.

5 years agoMerge branch 'fix-tooltip-trigger' into 'master'
Matthias Clasen [Sun, 15 Nov 2020 17:37:47 +0000 (17:37 +0000)]
Merge branch 'fix-tooltip-trigger' into 'master'

Fix tooltip triggering

See merge request GNOME/gtk!2833

5 years agoFix tooltip triggering
Matthias Clasen [Sun, 15 Nov 2020 14:34:25 +0000 (09:34 -0500)]
Fix tooltip triggering

Ever since 5b5d2665d373c35f, tooltips don't work properly,
since we get more motion events now, and those keep the
tooltips from appearing. This can be seen e.g. on the icon
in the password entry in widget-factory, or on the section
switcher buttons in the Emoji chooser.

Ignore synthetic motion events for the purposes of
determining whether the user moved the mouse.

5 years agoMerge branch 'widget-no-a11y-crash' into 'master'
Emmanuele Bassi [Sun, 15 Nov 2020 15:23:42 +0000 (15:23 +0000)]
Merge branch 'widget-no-a11y-crash' into 'master'

gtkwidget: fix crashes with GTK_A11Y=none

Closes #3333

See merge request GNOME/gtk!2834

5 years agogtkwidget: fix crashes with GTK_A11Y=none
Christoph Reiter [Sun, 15 Nov 2020 14:59:31 +0000 (15:59 +0100)]
gtkwidget: fix crashes with GTK_A11Y=none

at_context can be NULL in that case, so guard against it.

Fixes #3333

5 years agoMerge branch 'button-fill-var-removal' into 'master'
Matthias Clasen [Sun, 15 Nov 2020 13:45:42 +0000 (13:45 +0000)]
Merge branch 'button-fill-var-removal' into 'master'

Adwaita: Stop using $button_fill

Closes #3354

See merge request GNOME/gtk!2828

5 years agoMerge branch 'parse-debug-env-vars-always' into 'master'
Matthias Clasen [Sun, 15 Nov 2020 13:37:44 +0000 (13:37 +0000)]
Merge branch 'parse-debug-env-vars-always' into 'master'

Always parse GTK/GDK/GSK_DEBUG env vars and make some entries available in non-debug mode

See merge request GNOME/gtk!2830

5 years agoRevert "Update comment annotations of gtk_tree_model_iter_previous and gtk_tree_model...
Christoph Reiter [Sun, 15 Nov 2020 12:36:35 +0000 (13:36 +0100)]
Revert "Update comment annotations of gtk_tree_model_iter_previous and gtk_tree_model_iter_next to state that the ITER parameter is modified."

This reverts commit 1340ff2bc279329dc16b8d823100fec46b2f11d8.

Same as with 53cd499621b5

5 years agoAlways parse GTK/GDK/GSK_DEBUG env vars and make some entries available in non-debug...
Christoph Reiter [Sat, 14 Nov 2020 07:49:17 +0000 (08:49 +0100)]
Always parse GTK/GDK/GSK_DEBUG env vars and make some entries available in non-debug mode

Currently GTK can be built with G_ENABLE_DEBUG which enables various debug code and parsing
of those env vars, or without, which instead of parsing them prints a warning if they are set.
While building with G_ENABLE_DEBUG isn't strictly needed it's the only way to make GTK_DEBUG=interactive work,
which is a nice thing to have always.

This enables parsing of those env vars in any case and allows specific values being marked as also
available when not built with G_ENABLE_DEBUG (interactive for example). If not built with G_ENABLE_DEBUG
then all unavailable values will be marked as such in the help output and a note is added that
GTK needs to be built with G_ENABLE_DEBUG to use them, which should help discoverability.

5 years agoUpdate Ukrainian translation
Yuri Chornoivan [Sun, 15 Nov 2020 08:01:26 +0000 (08:01 +0000)]
Update Ukrainian translation

5 years agoMerge branch 'wip/carlosg/for-master' into 'master'
Matthias Clasen [Sat, 14 Nov 2020 14:41:01 +0000 (14:41 +0000)]
Merge branch 'wip/carlosg/for-master' into 'master'

gtk/main: Reset active state on grab broken only if implicit

See merge request GNOME/gtk!2832

5 years agogtk/main: Reset active state on grab broken only if implicit
Carlos Garnacho [Sat, 14 Nov 2020 09:48:04 +0000 (10:48 +0100)]
gtk/main: Reset active state on grab broken only if implicit

An implicit grab means some button is down, reset the active state
only in that case when we get a grab broken event.

Avoids active state accounting warnings when we do get active grabs
broken (e.g. after selecting a menu option).